package com.dfbz.model;


import com.dfbz.annotation.MyField;
import com.dfbz.annotation.MyTable;

import java.util.Date;

@MyTable(value = "article")
public class Article {

  private Long id;
  private String title;
  private String content;
  @MyField("browse_count")
  private Long browseCount;
  @MyField("publish_date")
  private Date publishDate;
  @MyField("publish_real_name")
  private String publishRealName;
  @MyField("user_id")
  private Long userId;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }


  public Long getBrowseCount() {
    return browseCount;
  }

  public void setBrowseCount(Long browseCount) {
    this.browseCount = browseCount;
  }


  public Date getPublishDate() {
    return publishDate;
  }

  public void setPublishDate(Date publishDate) {
    this.publishDate = publishDate;
  }


  public String getPublishRealName() {
    return publishRealName;
  }

  public void setPublishRealName(String publishRealName) {
    this.publishRealName = publishRealName;
  }


  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  @Override
  public String toString() {
    return "Article{" +
                      "id=" + id +
                      ", title='" + title + '\'' +
                      ", content='" + content + '\'' +
                      ", browseCount=" + browseCount +
                      ", publishDate=" + publishDate +
                      ", publishRealName='" + publishRealName + '\'' +
                      ", userId=" + userId +
                      '}';
  }
}
